home *** CD-ROM | disk | FTP | other *** search
- function decalFinder()
- {
- if(_root.doorID == 1)
- {
- _root.shopdoor._visible = false;
- }
- decalNum = _root.tankID + _root.decalID;
- colorTrans.rgb = _root.colorID;
- colorTrans.alphaMultiplier = _root.alphaID;
- trans.colorTransform = colorTrans;
- ftrans.colorTransform = colorTrans;
- frtrans.colorTransform = colorTrans;
- ptrans.colorTransform = colorTrans;
- pftrans.colorTransform = colorTrans;
- pfrtrans.colorTransform = colorTrans;
- chopper.decal.decal_form.gotoAndStop(decalNum);
- chopper.decal.tanks_mask.gotoAndStop(decalNum);
- poster.chopper.decal.decal_form.gotoAndStop(decalNum);
- poster.chopper.decal.tanks_mask.gotoAndStop(decalNum);
- chopper.front.gotoAndStop(_root.frontID);
- chopper1.front.gotoAndStop(_root.frontID);
- poster.chopper.front.gotoAndStop(_root.frontID);
- poster.chopper1.front.gotoAndStop(_root.frontID);
- chopper.tanks.gotoAndStop(_root.tankID);
- poster.chopper.tanks.gotoAndStop(_root.tankID);
- poster.chopper1.tanks.gotoAndStop(_root.tankID);
- chopper.rear.gotoAndStop(_root.rearID);
- chopper1.rear.gotoAndStop(_root.rearID);
- poster.chopper.rear.gotoAndStop(_root.rearID);
- poster.chopper1.rear.gotoAndStop(_root.rearID);
- chopper.seats.gotoAndStop(_root.seatID);
- poster.chopper.seats.gotoAndStop(_root.seatID);
- chopper.pipes._visible = _root.pipesID;
- poster.chopper.pipes._visible = _root.pipesID;
- chopper.front.skull._visible = _root.skullID;
- poster.chopper.front.skull._visible = _root.skullID;
- forms.gotoAndStop(_root.formID);
- shopdoor._visible = _root.doorID;
- }
- var colorTrans = new flash.geom.ColorTransform();
- var trans = new flash.geom.Transform(chopper.decal);
- trans.colorTransform = colorTrans;
- var ftrans = new flash.geom.Transform(chopper.rear.fender);
- ftrans.colorTransform = colorTrans;
- var frtrans = new flash.geom.Transform(chopper.front.fender);
- frtrans.colorTransform = colorTrans;
- var ptrans = new flash.geom.Transform(poster.chopper.decal);
- ptrans.colorTransform = colorTrans;
- var pftrans = new flash.geom.Transform(poster.chopper.rear.fender);
- pftrans.colorTransform = colorTrans;
- var pfrtrans = new flash.geom.Transform(poster.chopper.front.fender);
- pfrtrans.colorTransform = colorTrans;
- var spray = new Sound();
- spray.attachSound("spray");
- var laugh = new Sound();
- laugh.attachSound("laugh");
- var fast = new Sound();
- fast.attachSound("fast");
- var beep = new Sound();
- beep.attachSound("beep");
- var wrench = new Sound();
- wrench.attachSound("wrench");
- var rev = new Sound();
- rev.attachSound("rev");
- var clink = new Sound();
- clink.attachSound("clink");
- var torch = new Sound();
- torch.attachSound("torch");
- chopper.front.skull._visible = false;
- chopper.pipes._visible = false;
- poster.chopper.front.skull._visible = false;
- poster.chopper.pipes._visible = false;
- pipes_btn.onRelease = function()
- {
- fast.start();
- if(pipes_btn._currentframe == 2)
- {
- _root.pipesID = false;
- pipes_btn.gotoAndStop(1);
- }
- else
- {
- _root.pipesID = true;
- pipes_btn.gotoAndStop(2);
- }
- decalFinder();
- };
- skull_btn.onRelease = function()
- {
- skullspark.play();
- clink.start();
- if(skull_btn._currentframe == 1)
- {
- skull_btn.gotoAndStop(2);
- _root.skullID = true;
- decalFinder();
- }
- else
- {
- _root.skullID = false;
- skull_btn.gotoAndStop(1);
- decalFinder();
- }
- };
- seat1.onRelease = function()
- {
- _root.seatID = 1;
- wrench.start();
- chopper.seatspark.play();
- decalFinder();
- };
- seat2.onRelease = function()
- {
- _root.seatID = 2;
- wrench.start();
- chopper.seatspark.play();
- decalFinder();
- };
- seat3.onRelease = function()
- {
- _root.seatID = 3;
- wrench.start();
- chopper.seatspark.play();
- decalFinder();
- };
- seat4.onRelease = function()
- {
- _root.seatID = 4;
- wrench.start();
- chopper.seatspark.play();
- decalFinder();
- };
- decal_form1.onRelease = function()
- {
- _root.formID = 1;
- _root.decalID = 6;
- decalFinder();
- };
- decal_form2.onRelease = function()
- {
- _root.formID = 2;
- _root.decalID = 0;
- decalFinder();
- };
- decal_form3.onRelease = function()
- {
- _root.formID = 3;
- _root.decalID = 3;
- decalFinder();
- };
- front1.onRelease = function()
- {
- _root.frontID = 1;
- torch.start();
- chopper.frontspark.play();
- decalFinder();
- };
- front2.onRelease = function()
- {
- _root.frontID = 2;
- torch.start();
- chopper.frontspark.play();
- decalFinder();
- };
- front3.onRelease = function()
- {
- _root.frontID = 3;
- torch.start();
- chopper.frontspark.play();
- decalFinder();
- };
- front4.onRelease = function()
- {
- _root.frontID = 4;
- torch.start();
- chopper.frontspark.play();
- decalFinder();
- };
- tank1.onRelease = function()
- {
- _root.tankID = 1;
- clink.start();
- chopper.tankspark.play();
- decalFinder();
- };
- tank2.onRelease = function()
- {
- _root.tankID = 2;
- clink.start();
- chopper.tankspark.play();
- decalFinder();
- };
- tank3.onRelease = function()
- {
- _root.tankID = 3;
- clink.start();
- chopper.tankspark.play();
- decalFinder();
- };
- tank4.onRelease = function()
- {
- _root.tankID = 4;
- clink.start();
- chopper.tankspark.play();
- decalFinder();
- };
- rear1.onRelease = function()
- {
- _root.rearID = 1;
- rev.start();
- decalFinder();
- };
- rear2.onRelease = function()
- {
- _root.rearID = 2;
- rev.start();
- decalFinder();
- };
- rear3.onRelease = function()
- {
- _root.rearID = 3;
- rev.start();
- decalFinder();
- };
- rear4.onRelease = function()
- {
- _root.rearID = 4;
- rev.start();
- decalFinder();
- };
- decal1.onRelease = function()
- {
- spray.start();
- _root.colorID = "0xFFD133";
- _root.alphaID = 0.85;
- decalFinder();
- };
- decal2.onRelease = function()
- {
- spray.start();
- _root.colorID = "0xE0922F";
- _root.alphaID = 0.85;
- decalFinder();
- };
- decal3.onRelease = function()
- {
- spray.start();
- _root.colorID = "0xB81F26";
- _root.alphaID = 0.65;
- decalFinder();
- };
- decal4.onRelease = function()
- {
- spray.start();
- _root.colorID = "0xB5CF48";
- _root.alphaID = 0.65;
- decalFinder();
- };
- decal5.onRelease = function()
- {
- spray.start();
- _root.colorID = "0x7FC2EB";
- _root.alphaID = 0.65;
- decalFinder();
- };
- decal6.onRelease = function()
- {
- spray.start();
- _root.colorID = "0x5A308D";
- _root.alphaID = 0.65;
- decalFinder();
- };
- decal7.onRelease = function()
- {
- spray.start();
- _root.colorID = "0xBDBEC0";
- _root.alphaID = 0.65;
- decalFinder();
- };
- decal8.onRelease = function()
- {
- spray.start();
- _root.colorID = "0x000000";
- _root.alphaID = 0.45;
- decalFinder();
- };
-